import { Column, DeleteDateColumn, Entity, Index } from 'typeorm';
import { IBaseEntity } from '../../00_base/IBaseEntity';

@Index('type_code', ['code'], { unique: true })
@Entity('sys_dict_type', { schema: 'dbo' })
export class SysDictType extends IBaseEntity {
  @Column('nvarchar', { name: 'name', nullable: true, length: 50 })
  name: string | null;

  @Column('nvarchar', { name: 'code', nullable: true, length: 50 })
  code: string | null;

  @Column('tinyint', { name: 'status', nullable: true })
  status: number | null;

  @Column('nvarchar', { name: 'remark', nullable: true, length: 255 })
  remark: string | null;
}
